package com.woniu.common.constant;

/**
 * packageName com.woniu.constant
 *
 * @author zxyang3636
 * @version JDK 8
 * @className FinanceConstant
 * @date 2024/7/25
 * @description TODO 常量接口
 */
public interface FinanceConstant {

    interface RequestFilter {   // redis key
        String USER_ROLE = "USER_ROLE:";    // USER_ROLE+用户id
        String USER_REQ_PATH = "USER_REQ_PATH:"; // USER_REQ_PATH+角色id
    }

    interface JWT {
        String TOKEN_HEADER = "zy";
    }

    interface Salt {
        String SALT = "zy";
    }

    interface User {
        String TOKEN = "token";
        String PAYLOAD_NAME = "user";
    }

    interface WhiteListRedis {  // 白名单key
        String WHITE_LIST_KEY = "WHITELIST";
    }

    interface userShoppingCart {    // 购物车redis key
        String USER_SHOP_CART_KEY = "USERSHOPPINGCART";
    }


    interface Queue {
        String CHAT_QUEUE = "chat_queue";
        String ORDER_QUEUE = "order_queue";
        String SKU_QUEUE = "sku_queue";
        String PRODUCT_QUEUE = "product_queue";
        String CONSUME_QUEUE = "consume_queue";

        String DLX_ORDER_QUEUE = "dlx_order_queue";
        String DLX_SKU_QUEUE = "dlx_sku_queue";
        String DLX_CONSUME_QUEUE = "dlx_consume_queue";

        String TTL_ORDER_QUEUE = "ttl_order_queue";
        String DLX_TTL_ORDER_QUEUE = "dlx_ttl_order_queue";

        String ROLLBACK_SKU_QUEUE = "rollback_sku_queue";
        String ROLLBACK_CONSUME_QUEUE = "rollback_consume_queue";

    }

    interface Exchange {
        String ORDER_EXCHANGE = "order_exchange";
        String EXCHANGE = "exchange";
        String DLX_EXCHANGE = "dlx_exchange";
    }

    interface RoutingKey {
        String CHAT_ROUTING_KEY = "chat_routing_key";
        String ORDER_ROUTING_KEY = "order_routing_key";
        String PRODUCT_ROUTING_KEY = "product_routing_key";
        String SKU_ROUTING_KEY = "sku_routing_key";
        String CONSUME_ROUTING_KEY = "consume_routing_key";

        String DLX_ORDER_ROUTING_KEY = "dlx_order_routing_key";
        String DLX_SKU_ROUTING_KEY = "dlx_sku_routing_key";
        String DLX_CONSUME_ROUTING_KEY = "dlx_consume_routing_key";

        String TTL_ORDER_ROUTING_KEY = "ttl_order_routing_key";
        String DLX_TTL_ORDER_ROUTING_KEY = "dlx_ttl_order_queue";

        String ROLLBACK_SKU_ROUTING_KEY = "rollback_sku_routing_key";
        String ROLLBACK_CONSUME_ROUTING_KEY = "rollback_consume_routing_key";
    }
}
